package com.deyuanyun.pic.pipe.domain.exceldomain;

import com.caixu.beanvalidateutil.annotations.CodeVail;
import com.caixu.beanvalidateutil.annotations.DataValidate;
import com.deyuanyun.pic.pipe.support.validatefun.CodeValidata;
import com.deyuanyun.pic.pipe.support.validatefun.PipeLineValidata;
import com.deyuanyun.pic.pipe.support.validatefun.PipeSegmentValidata;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;


public class CelbowImportDemo {

	private String code;
	
	@DataValidate(notNull = true,myFunction=PipeLineValidata.class,myFunctionMessage="管道不存在")
 	private String pipeLineId;

	@DataValidate(notNull = true,myFunction=PipeSegmentValidata.class,myFunctionMessage="管段不存在！")
    private String pipeSegmentId;

	@DataValidate(lengthLimit="32",lengthLimitMessage="长度不能大于32")
    private String elbowNumber;

//	@DataValidate(lengthLimit="32",lengthLimitMessage="长度不能大于32")
//    private String pipeNumber;
	    
	@DataValidate(notNull = true,type = Number.class,numberRang="{-180,180}",notNullMessage="x坐标范围只能是-180至180")    
    private String x;
	
	@DataValidate(notNull = true,type = Number.class,numberRang="{-90,90}",notNullMessage="y坐标范围只能是-90至90")
    private String y;
	    
	@DataValidate(notNull = true,type = Number.class,numberRang="{-99999,999999}",notNullMessage="z坐标范围只能是0至999999米")
    private String z;
	    
	@DataValidate(type = Number.class)
    private String elbowAngle;

	@DataValidate(type = Number.class)
    private String elbowCurvrad;
	
	@DataValidate(lengthLimit="80",lengthLimitMessage="长度不能大于80")
    private String direction;
	
	@DataValidate(type=Number.class)
	private String curveLength;

	@DataValidate(type=Number.class)
	private String tangentLength;

	@DataValidate(type=Number.class)
	private String arcLength;
	    
	@CodeVail(majorCode="COATINGMATERIAL",fieldName="防腐材料")
	@DataValidate(myFunction=CodeValidata.class,myFunctionMessage="数据库无对应值")
	private String coatingMaterial;
	    

	@DataValidate(lengthLimit="50",lengthLimitMessage="长度不能大于50")
    private String recorder;

	@DataValidate(type=Date.class,datePattern = {"yyyyMMdd","yyyy-MM-dd","yyyy/MM/dd"})
    private String recordtime;
    
	@DataValidate(lengthLimit="1000",lengthLimitMessage="长度不能大于1000")
    private String createRemark;

	public String getPipeLineId() {
		return pipeLineId;
	}

	public void setPipeLineId(String pipeLineId) {
		this.pipeLineId = pipeLineId;
	}

	public String getPipeSegmentId() {
		return pipeSegmentId;
	}

	public void setPipeSegmentId(String pipeSegmentId) {
		this.pipeSegmentId = pipeSegmentId;
	}

	public String getElbowNumber() {
		return elbowNumber;
	}

	public void setElbowNumber(String elbowNumber) {
		this.elbowNumber = elbowNumber;
	}

	public String getElbowAngle() {
		return elbowAngle;
	}

	public void setElbowAngle(String elbowAngle) {
		this.elbowAngle = elbowAngle;
	}

	public String getElbowCurvrad() {
		return elbowCurvrad;
	}

	public void setElbowCurvrad(String elbowCurvrad) {
		this.elbowCurvrad = elbowCurvrad;
	}

//	public String getPipeNumber() {
//		return pipeNumber;
//	}
//
//	public void setPipeNumber(String pipeNumber) {
//		this.pipeNumber = pipeNumber;
//	}

	public String getDirection() {
		return direction;
	}

	public void setDirection(String direction) {
		this.direction = direction;
	}

	public String getCurveLength() {
		return curveLength;
	}

	public void setCurveLength(String curveLength) {
		this.curveLength = curveLength;
	}

	public String getTangentLength() {
		return tangentLength;
	}

	public void setTangentLength(String tangentLength) {
		this.tangentLength = tangentLength;
	}

	public String getArcLength() {
		return arcLength;
	}

	public void setArcLength(String arcLength) {
		this.arcLength = arcLength;
	}

	public String getCoatingMaterial() {
		return coatingMaterial;
	}

	public void setCoatingMaterial(String coatingMaterial) {
		this.coatingMaterial = coatingMaterial;
	}


	public String getRecorder() {
		return recorder;
	}

	public void setRecorder(String recorder) {
		this.recorder = recorder;
	}

	public String getRecordtime() {
		return recordtime;
	}

	public void setRecordtime(String recordtime) {
		this.recordtime = recordtime;
	}

	public String getCreateRemark() {
		return createRemark;
	}

	public void setCreateRemark(String createRemark) {
		this.createRemark = createRemark;
	}

	public String getX() {
		return x;
	}

	public void setX(String x) {
		this.x = x;
	}

	public String getY() {
		return y;
	}

	public void setY(String y) {
		this.y = y;
	}

	public String getZ() {
		return z;
	}

	public void setZ(String z) {
		this.z = z;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
    
	    
}
